import request from '@/utils/request'

// 查询报销明细列表
export function listExpendpart(query) {
  return request({
    url: '/Expend/expendpart/list',
    method: 'get',
    params: query
  })
}

export function listweexpendpart(query) {
  return request({
    url: '/system/wecom/listweexpendpart',
    method: 'get',
    params: query
  })
}

export function listweExpendpart(query) {
  return request({
    url: '/Expend/expendpart/list',
    method: 'get',
    params: query
  })
}

// 查询报销明细详细
export function getExpendpart(partId) {
  return request({
    url: '/Expend/expendpart/' + partId,
    method: 'get'
  })
}

// 新增报销明细
export function addExpendpart(data) {
  return request({
    url: '/Expend/expendpart',
    method: 'post',
    data: data
  })
}

// 修改报销明细
export function updateExpendpart(data) {
  return request({
    url: '/Expend/expendpart',
    method: 'put',
    data: data
  })
}

// 删除报销明细
export function delExpendpart(partId) {
  return request({
    url: '/Expend/expendpart/' + partId,
    method: 'delete'
  })
}
